<?php

namespace app\controller;

use support\Request;

class IndexController
{
    public function index(Request $request)
    {
        return json(['code' => 200, 
                'msg' => 'Api is Running',
                'data'=>[
                    'version' => '1.0.0',
                    'ClientIP' => $request->getRealIp(),
                    'ServerTime'=>date('Y-m-d H:i:s'),
                    ]
                ]);
    }

}
